package com.liwentao.seckill.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/seckill/demo")
@Api(value = "测试",tags = "测试")
public class DemoController {
    @ApiOperation( value = "hello",notes = "测试页面跳转")
    @GetMapping("/hello")
    public String hello(Model model){
        model.addAttribute("name", "liwentao");
        return "hello";
    }
}
